const getBaiduCity=()=>{
    return new Promise((resolve,reject)=>{
        const geolocation = new window.BMap.Geolocation();
geolocation.getCurrentPosition(function(res){
	if(this.getStatus() == window.BMAP_STATUS_SUCCESS){
        resolve(res.address);
	} else{
        reject(res)
    }
});
    })
}
export default getBaiduCity